<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>组织管理</title>
<link rel="stylesheet" type="text/css" href="../../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../../css/css.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../../css/colorReset.css" />
<style type="text/css">
.popup_con {
	border: 1px solid #95B8E7;
	width: 380px;
	margin: 10px auto 0 auto;
}

.popup_con ul {
	margin: 10px auto;
	width: 380px;
	overflow: hidden;
}

.popup_con ul li {
	width: 340px;
	display: block;
	float: left;
	height: 25px;
	overflow: hidden;
	padding: 5px 0;
}

.popup_con ul li.li_col {
	width: 380px;
	height: auto;
}

.popup_con .text {
	width: 260px;
}
</style>

</head>

<body>

	<div class="main">


		<div class="data_con">
			<div id="toolbox" style="padding: 5px; height: 25px">
				<div style="margin-bottom: 5px; float: left">
					<a href="javascript:void(0)" onclick="addCom()"
						class="easyui-linkbutton" id="toolbar_add" iconCls="icon-add"
						plain="true">新增公司</a><a href="javascript:void(0)"
						onclick="addDep()" class="easyui-linkbutton" id="toolbar_add"
						iconCls="icon-add" plain="true">新增部门</a> <a
						href="javascript:void(0)" onclick="update()"
						class="easyui-linkbutton" id="toolbar_modify" iconCls="icon-edit"
						plain="true">修改</a> <a href="javascript:void(0)" onclick="del()"
						class="easyui-linkbutton" id="toolbar_delete"
						iconCls="icon-remove" plain="true">刪除</a>
				</div>
			</div>

			<table id="datagrid" style="width: 100%; height: 200px" title="组织结构"
				singleSelect="true" fitColumns="true">
			</table>
		</div>
	</div>


	<div id="win" class="easyui-window" title="公司-新增"
		style="width: 430px; height: auto;"
		data-options="iconCls:'icon-save',modal:true,minimizable:false,maximizable:false,collapsible:false">
		<form id="addForm" method="post">
			<div class="popup_con">
				<ul>
					<li class="li_col"><label for="txtFieldName" class="label">公司名称：</label>
						<div class="input_con">
							<input id="companyName" name="txtFieldName"
								class="easyui-validatebox text"
								data-options="required:true,validType:['unnormal','length[0,50]']"
								missingMessage="公司名称不能为空!" />
						</div></li>

				</ul>
			</div>

		</form>
		<div id="buttons" class="button_con">
			<a href="javascript:void(0)" onclick="save()"
				class="easyui-linkbutton" id="instance_save" iconCls="icon-ok"
				plain="true">保存</a> <a href="javascript:void(0)" onclick="rePage()"
				class="easyui-linkbutton" id="cancalBtn" iconCls="icon-cancel"
				plain="true">取消</a>
		</div>

	</div>


	<!-- 新增部门 -->
	<div id="winEdit" class="easyui-window" title="部门管理-新增"
		style="width: 430px; height: auto; top: 20px"
		data-options="iconCls:'icon-save',modal:true,minimizable:false,maximizable:false,collapsible:false">
		<form id="addForm2" method="post">
			<div class="popup_con">
				<ul>
					<li class="li_col"><label for="companyName" class="label">所属公司：</label>
						<div class="input_con">
							<input id="comboxCompanyName" name="companyName"
								data-options="required:true,valueField:'id',textField:'text'"
								class="text" />
						</div></li>
					<li class="li_col"><label for="departmentName" class="label">部门名称：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" type="text" name="orgName"
								id="comboxDepartment"
								data-options="required:true,validType:['unnormal','length[0,50]']"
								missingMessage="部门名称不能为空!" />
						</div></li>

				</ul>
			</div>
		</form>
		<div id="buttons" class="button_con">
			<a href="javascript:void(0)" onclick="onSave2()"
				class="easyui-linkbutton" id="instance_save" iconCls="icon-ok"
				plain="true">保存</a> <a href="javascript:void(0)"
				onclick="onCancleEdit2()" class="easyui-linkbutton"
				id="instance_cancel" iconCls="icon-cancel" plain="true">取消</a>
		</div>
	</div>


	<!--导入-->
	<div id="import_link" title="导入">
		<div class="import_con">
			<label>文件地址：</label> <input type="text" id="fileName" name="fileName"
				class="text" readonly="readonly" />
			<button class="default_btn" id="selFileBtn" style="display: inline;">浏览</button>
			<input type="file" name="importLinkFile" id="importLinkFile"
				accept=".xls,.xlsx" />
		</div>
		<p style="text-align: center;">
			温馨提示：支持导入的文件格式为.xls和.xlsx<a
				href="../../assets/importDataTempl/公司管理导入模板.xlsx" class="dl-link">下载公司管理导入模板</a>
		</p>
		<div id="buttons_inport" class="button_con">
			<a href="javascript:void(0)" onclick="subgo()"
				class="easyui-linkbutton" iconCls="icon-ok" plain="true">确定导入</a>
			<!-- <input type="submit" class="easyui-linkbutton" id="" iconCls="icon-ok"	plain="true" value="确定导入"/> -->
		</div>
	</div>
	<script type="text/javascript" src="/webjars/json3/3.3.2/json3.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/datagrid-detailview.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="../../js/cook/public.js"></script>
	<script type="text/javascript" src="../../js/cook/constants.js"></script>
	<script type="text/javascript" src="../../js/cook/FormValidate.js"></script>
	<script type="text/javascript" src="../../js/ajaxfileupload.js"></script>
	<script type="text/javascript"
		src="../../js/cook/LedgerManagement/CompanyManage.js"></script>

</body>
</html>



